# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit font

DESCRIPTION="Microsoft's Tahoma font"
HOMEPAGE="http://corefonts.sourceforge.net/"
SRC_URI="mirror://sourceforge/corefonts/OldFiles/IELPKTH.CAB"

LICENSE="MSttfEULA"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE=""

DEPEND="app-arch/cabextract"

S=${WORKDIR}
FONT_S=${WORKDIR}
FONT_SUFFIX="ttf"

src_unpack() {
	cabextract -F 'tahoma.ttf' "${DISTDIR}/IELPKTH.CAB" > /dev/null \
		|| die "failed to unpack tahoma.ttf"
	cabextract -F 'tahomabd.ttf' "${DISTDIR}/IELPKTH.CAB" > /dev/null \
		|| die "failed to unpack tahomabd.ttf"
}
